package liuch;

import java.util.Scanner;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        // 计算某一天是一年的第几天
        /*System.out.println("请输入年 月 日");
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();
        int month = scanner.nextInt();
        int day = scanner.nextInt();
        Calendar calendar = Calendar.getInstance();
        calendar.set(year, month - 1, day);
        int sum = calendar.get(Calendar.DAY_OF_YEAR);
        if (year / 4 == 0 && month > 2) {
            sum++;
        }
        System.out.println(sum);*/
        // 计算一个值+100完全开发，+168也能完全开方
       /* for (int i = 0; i < 10000; i++) {
            if (Math.sqrt(i + 100) % 1 == 0) {
                if (Math.sqrt(i + 168) % 1 == 0) {
                    System.out.println(i);
                }
            }
        }*/
        // 计算最后一个单词的长度
        /*Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        if (s != null && !"".equals(s)) {
            int index = s.lastIndexOf(" ");
            System.out.println(s.substring(index + 1).length());
        }*/

    }
}
